{% extends '__base.tpl' %}

{% block head %}
{{super()}}
<!-- build:css -->
    <link rel="stylesheet" type="text/css" href="../../../public/css/page/dateyearmonth.css" />
<!-- endbuild -->
<!-- build:css -->
    <link rel="stylesheet" type="text/css" href="../../../public/css/page/cropper.css" />
    <link rel="stylesheet" type="text/css" href="../../../public/css/page/popup.css" />
    <link rel="stylesheet" type="text/css" href="../../../public/css/page/user.css" />
<!-- endbuild -->
{% endblock %}

{% block body %}
<div class="user-bg">
    <div id="box" class="hide">
        <!--用户头部简介start-->
        <div id="userData"></div>
            <script id="userData_tpl" type="text/html">
            <!--用户资料-->
            <div class="user-top-box clearfix">
                <div class="user-head-box" onclick="$(this).next().click()">
                    <div class="change-head">更换头像</div>
                    <img  src=" <%=imgPath(header)%>" alt="head" >
                </div>
                <input type="file" class="hide" accept="image/*" onchange="BASE.USER_CENTER.previewImg(this)">
                <div class="fleft user-top-right">
                    <div class="clearfix">
                        <div class="fleft clo6">
                            <b class="user-name"><%nickName%></b>
                            <% if memberType==='V' %>
                            <img src="../../public/images/daren1.jpg" class="iconLV1" />
                            <% else if memberType==='D' %>
                            <img src="../../public/images/daren2.jpg" class="iconLV" />
                            <%/if%>
                            <span class="ml10 clo9">
                                等级: <em> <%memberType%><%=toFloat( gradeValue/100 , 0)%> </em>
                            </span>
                            <%if expire%>
                            <span class="ml10 clo9">
                                会员到期：<%=dateFormat(expire,'yyyy-M-d')%>
                            </span>
                            <%/if%>
                            <span class="ml10 clo9">
                                <% if score%>
                                好评率: <em class="blue"> <%score%>% </em>
                                <%else%>
                                 评价: <em class="blue"> 暂无</em>
                                <%/if%>
                            </span>
                        </div>
                        <div class="fright">
                            <button class="btn blue-btn" onclick="BASE.USER_CENTER.modifyUserDataPrev()">我的资料</button>
                            <% if memberType==='N' %>
                           <!-- <button class="btn orange-btn">申请达人</button>-->
                            <%/if %>
                            <button class="btn red-border-btn" onclick="$('#getGold').show()">赚金币</button>
                        </div>
                    </div>
                    <p class="user-sign"> <% sign %></p>
                    <div class="clo6">
                         <span>
                            兴趣方向：
                            <em class="clo9">
                            <%if learnTypeNames.toString()%>
                                <%learnTypeNames.toString()%>
                            <%else%>
                                暂无
                            <%/if%>
                             </em>
                             <a href="javascript:;" class="blue u ml10" onclick="$('#bindMobile').show()">
                                 <%if mobile%>
                                 修改手机
                                 <%else%>
                                 绑定手机
                                 <%/if%>
                             </a>
                        </span>
                        <!--年龄：<span class="clo9">
                        <% if age %>
                            <% age %>
                        <%else %>
                            暂未填写
                        <%/if %>
                        </span>-->
                        <% if areaName %>
                        <span class="ml30">
                            来自：<em class="clo9"><% areaName %></em>
                        </span>
                        <%/if%>
                        <%if company%>
                        <span class="ml30">
                            工作单位：<em class="clo9"><%company%></em>
                        </span>
                        <%/if%>
                        <%if schoolName%>
                        <span class="ml30">
                            学校：<em class="clo9"><%schoolName%></em>
                        </span>
                        <%/if%>
                    </div>
                </div>
            </div>
            <!--关注人数-->
            <div class="user-nav-box">
                <div class="user-nav">
                    <span>
                        关注 <em class="red"><%followCount%></em>
                    </span>
                    <span class="ml30">
                        粉丝 <em class="red"><%fansCount%></em>
                    </span>
                     <span class="ml30">
                        获赞数 <em class="red"><%likeCount%></em>
                    </span>
                    <!--<span class="ml30">
                        咨询人数 <em class="red"><%askCount%></em>
                    </span>-->
                    <span class="ml30">
                        提问数 <em class="red"><%sendQuestionCount%></em>
                    </span>
                    <span class="ml30">
                        回答数 <em class="red"><%replyQuestionCount%></em>
                    </span>
                    <span class="ml30">
                        最佳回答 <em class="red"><%goodAnswerCount%></em>
                    </span>
                    <!--<button class="fright btn blue-btn">私聊</button>-->
                </div>
            </div>
        </script>
        <!--用户头部简介end-->
        <div class="user-content-box">
            <!--用户内容导航start-->
            <div class="user-content-nav-box"  id="userContentNav">
                <a href="javascript:;" data-id="userNotice"
                   onclick="BASE.USER_CENTER.getNoticeList.call(this,1)" class="user-content-nav checked">关注</a>
                <a href="javascript:;" data-id="userFans"
                   onclick="BASE.USER_CENTER.getFans.call(this,1)" class="user-content-nav">粉丝</a>
                <a href="javascript:;" data-id="userQuestion" class="user-content-nav" data-type="true"
                   onclick="BASE.USER_CENTER.getMyQuestion.call(this,1)">我的提问</a>
                <a href="javascript:;" data-id="userAnswer" class="user-content-nav"
                   onclick="BASE.USER_CENTER.getMyAnswer.call(this,1)">我的回答</a>
                <a href="javascript:;" data-id="userProject" class="user-content-nav"
                   onclick="BASE.USER_CENTER.getMyProject.call(this,1)">我的项目</a>
                <a href="javascript:;" data-id="userSource" class="user-content-nav"
                   onclick="BASE.USER_CENTER.getMySource.call(this,1)">我的源码</a>
                <a href="javascript:;" data-id="userBlog" class="user-content-nav"
                   onclick="BASE.USER_CENTER.getMyBlog.call(this,1)">我的博客</a>
                <!--<a href="javascript:;" data-id="userDownload" class="user-content-nav">我的下载</a>-->
                <a href="javascript:;" data-id="userCollection" data-type="1"
                   onclick="BASE.USER_CENTER.getCollectList.call(this,1)" class="user-content-nav">我的收藏</a>
               <!-- <a href="javascript:;" data-id="userEvaluate" class="user-content-nav">我的评价</a>-->
                <!--<a href="javascript:;" data-id="userReceiptOrder" class="user-content-nav">悬赏接单</a>-->
                <a href="javascript:;" data-id="userOrder"
                   onclick="BASE.USER_CENTER.getOrderList.call(this,1)" class="user-content-nav">我的订单</a>
                <a href="javascript:;" onclick="BASE.USER_CENTER.getDealList.call(this,1)" data-id="userWallet" class="user-content-nav">我的钱包</a>
              <!--  <a href="javascript:;" data-id="userMentionMe" class="user-content-nav">提到我的</a>-->
            </div>
            <!--用户内容导航end-->
            <div class="user-content" style="min-height: 300px">
                <!--用户栏目---关注的人start-->
                <section id="userNotice"></section>
                <script id="userNotice_tpl" type="text/html">
                    <ul class="darenList pd15">
                    <% if data.length>0 %>
                        <% each data as arr i %>
                        <li class="darenList-item clearfix">
                            {% include '__toNotice_list_common.html' %}

                            <button class="btnStyleS hide middle-right" data-memberid="<%arr.toMemberId%>"
                            onclick="BASE.COMMON.noticeToMember(this)"> + 关注 <%arr.followIs%>  </button>
                            <button class="btnStyleC ml20 middle-right" data-memberid="<%arr.toMemberId%>"
                            onclick="BASE.COMMON.cancelNotice(this)">已关注<%arr.followIs%></button>

                        </li>
                        <%/each%>
                    <%else%>
                        <li>
                            {% include '__no_data.html' %}
                        </li>
                    <%/if%>
                    </ul>
                    {% include '__page.html' %}
                </script>
                <!--用户栏目---关注的人end-->

                {%include '__user_fans.html'%}

                <!--用户栏目---我的提问start-->
                <section  class="hide" id="userQuestion">
                   <!-- <div class="user-sub-nav">
                        <a class="user-sub-nav-item checked"  data-type="true"
                           onclick="BASE.USER_CENTER.getMyQuestion.call(this,1)">互助问答</a>
                        <a class="user-sub-nav-item"  data-type="false"
                           onclick="BASE.USER_CENTER.getMyQuestion.call(this,1)">其他</a>
                    </div>-->
                    <div class="content"></div>
                </section>
                <script id="userQuestion_tpl" type="text/html">
                    <ul class="user-question-list">
                        <% if data.length>0 %>
                        <% each data as item i %>
                        <li class="user-question-item">
                            <a target="_blank" href="/<%item.id%>/answer_content.html">
                                <em class="font16 orange">[互助问答·<%item.categoryName%>]</em>
                                <h3 class="title"><%item.title%></h3>
                                <%if item.currentGoodCount>0%>
                                <span class="font14 blue">（该提问已有 <em class="u"><%item.currentGoodCount%></em>个最佳回答）</span>
                                <%/if%>
                            </a>
                            <span class="fright clo9 font12">
                                <%item.answerCount%>回复·<%=toTimeStr(item.updateDateTime)%>
                                <%if item.answerCount<1 && item.unitPrice<=0%>
                                <span href="javascript:;" class="ml10 pointer" data-id="<%item.id%>"
                                   onclick="BASE.USER_CENTER.removeQues(this)">删除</span>
                                <%/if%>
                            </span>
                        </li>
                        <%/each %>
                        <%else%>
                        <li class="no-data" style="width: 100%">
                            {% include '__no_data.html' %}
                        </li>
                        <%/if%>
                    </ul>
                    {% include '__page.html' %}
                </script>
                <!--用户栏目---我的提问end-->

                <!--用户栏目---我的回答start-->
                <section  class="hide" id="userAnswer">
                    <!-- <div class="user-sub-nav">
                         <a class="user-sub-nav-item checked"  data-type="true"
                            onclick="BASE.USER_CENTER.getMyQuestion.call(this,1)">互助问答</a>
                         <a class="user-sub-nav-item"  data-type="false"
                            onclick="BASE.USER_CENTER.getMyQuestion.call(this,1)">其他</a>
                     </div>-->
                    <div class="content"></div>
                </section>
                <script id="userAnswer_tpl" type="text/html">
                    <ul class="user-question-list">
                        <% if data.length>0 %>
                        <% each data as item i %>
                        <li class="user-question-item">
                            <div>
                                <a target="_blank" href="/<%item.mutualQuestionId%>/answer_content.html">
                                    <%if item.goodAnswerIs%>
                                    <em class="font16 orange">[最佳回答]</em>
                                    <%/if%>
                                    <h3 class="title"><%item.title%></h3>
                                    <%if item.gainPrice>0%>
                                    <span class="font14 blue">（该回答收入 <em class="red"><%item.gainPrice%>元</em>）</span>
                                    <%/if%>
                                </a>
                            </div>
                           <div class="clo6 font14 mt5">
                               <%=toOveHtml(item.content) %>
                           </div>
                            <div class="font13 clo9 mt10">
                                <%=toTimeStr(item.createDateTime)%> <span class="ml20">评论：<%item.commentCount%></span>
                                <%if !item.goodAnswerIs%>
                                <a class="clo9 ml20" data-id="<%item.id%>" href="javascript:;"
                                   onclick="BASE.USER_CENTER.removeAnswer(this)">删除</a>
                                <%/if%>
                            </div>
                        </li>
                        <%/each %>
                        <%else%>
                        <li class="no-data" style="width: 100%">
                            {% include '__no_data.html' %}
                        </li>
                        <%/if%>
                    </ul>
                    {% include '__page.html' %}
                </script>
                <!--用户栏目---我的回答end-->

                <!--用户栏目---我的项目start-->
                <section  class="hide" id="userProject">
                    <!-- <div class="user-sub-nav">
                         <a class="user-sub-nav-item checked"  data-type="true"
                            onclick="BASE.USER_CENTER.getMyQuestion.call(this,1)">互助问答</a>
                         <a class="user-sub-nav-item"  data-type="false"
                            onclick="BASE.USER_CENTER.getMyQuestion.call(this,1)">其他</a>
                     </div>-->
                    <div class="content"></div>
                </section>
                <script id="userProject_tpl" type="text/html">
                    <ul class="user-question-list">
                        <% if data.length>0 %>
                        <% each data as item i %>
                        <li class="user-question-item">
                            <div>
                                <a target="_blank" href="/<%item.id%>/project_content_user.html">
                                    <%if item.status==2%>
                                    <em class="font16 orange">[审核成功]</em>
                                    <%else%>
                                    <em class="font16 orange">[<%=projectStatus(item.status)%>]</em>
                                    <%/if%>
                                    <h3 class="title"><%item.title%></h3>
                                    <%if item.price>0%>
                                    <span class="font14 blue">（已支付<%=projectPayType(item.priceType)%><em class="red"><%item.price%>元</em>）</span>
                                    <%/if%>
                                </a>
                            </div>
                            <div class="font13 clo9 mt10">
                                <%=toTimeStr(item.createDateTime)%> <span class="ml20">跟帖：<%item.commentCount%></span>
                                <span class="ml20">浏览：<%item.clickCount%></span>
                                <span class="ml20">分享：<%item.shareCount%></span>
                                <%if item.status==4%>
                                <span class="ml20">
                                    <a target="_blank" href="/<%item.recvMemberId%>/userInfo.html" class="red">
                                        <%item.recvNickName%>
                                    </a>
                                     <%=dateFormat(item.recvDateTime)%>接单
                                </span>
                                <%/if%>
                            </div>
                        </li>
                        <%/each %>
                        <%else%>
                        <li class="no-data" style="width: 100%">
                            {% include '__no_data.html' %}
                        </li>
                        <%/if%>
                    </ul>
                    {% include '__page.html' %}
                </script>
                <!--用户栏目---我的项目end-->
                <!--用户栏目---我的源码start-->
                <section  class="hide listCon" id="userSource">
                    <div class="content"></div>
                </section>
                <script id="userSource_tpl" type="text/html">
                    <ul class="user-question-list pd15">
                        <% if data.length>0 %>
                        <% each data as item i %>
                        <li style="width: inherit" class="relative">
                            {%include '__source_script.html'%}
                            <span class="middle-right blue" href="javascript:;"
                               onclick="BASE.USER_CENTER.removeSource('<%item.id%>')">删除</span>
                        </li>
                        <%/each %>
                        <%else%>
                        <li class="no-data" style="width: 100%">
                            {% include '__no_data.html' %}
                        </li>
                        <%/if%>
                    </ul>
                    {% include '__page.html' %}
                </script>
                <!--用户栏目---我的源码end-->

                <!--用户栏目---我的博客start-->
                <section  class="hide listCon" id="userBlog">
                    <div class="content"></div>
                </section>
                <script id="userBlog_tpl" type="text/html">
                    <ul class="user-question-list pd15">
                        <% if data.length>0 %>
                        <% each data as item i %>
                        <li style="width: inherit" class="relative">
                            {%include '__blog_script.html'%}
                            <span class="middle-right blue" href="javascript:;"
                                  onclick="BASE.USER_CENTER.removeBlog('<%item.id%>')">删除</span>
                        </li>
                        <%/each %>
                        <%else%>
                        <li class="no-data" style="width: 100%">
                            {% include '__no_data.html' %}
                        </li>
                        <%/if%>
                    </ul>
                    {% include '__page.html' %}
                </script>
                <!--用户栏目---我的博客end-->

                <!--用户栏目---我的下载start-->
                <section class="hide" id="userDownload">
                    <h3 class="nav-item-title font16 blue">
                        c++
                    </h3>
                    <ul class="user-question-list">
                        <li class="user-question-item">
                            <em class="font16 orange">[c++]</em>
                            <h3 class="title">问题提标题标题</h3> -
                            <span class="font14 blue">源码</span>
                        </li>
                    </ul>
                </section>
                <!--用户栏目---我的下载end-->

                <!--用户栏目---我的收藏start-->
                <section class="hide" id="userCollection">
                    <div class="user-sub-nav">
                        <a class="user-sub-nav-item checked"  data-type="1"
                           onclick="BASE.USER_CENTER.getCollectList.call(this,1)">视频</a>
                        <a class="user-sub-nav-item"  data-type="2"
                           onclick="BASE.USER_CENTER.getCollectList.call(this,1)">问答</a>
                        <a class="user-sub-nav-item"  data-type="3"
                           onclick="BASE.USER_CENTER.getCollectList.call(this,1)">源码</a>
                        <a class="user-sub-nav-item"  data-type="4"
                           onclick="BASE.USER_CENTER.getCollectList.call(this,1)">博客</a>
                    </div>
                    <div class="content"></div>
                </section>
                <script id="userCollection_tpl1" type="text/html">
                    <div class="listCon pd15" >
                        <ul class="clearfix">
                            <% if data.length>0 %>
                            <% each data as item i %>
                            <li class="relative">
                                <a target="_blank" href="/<%item.relatedId%>/video_play.html">
                                    <div class="listConLeft video-icon">
                                        <img class="content-img" src="<%=imgPath(item.cover)%>">
                                    </div>
                                    <div class="listConRight">
                                        <h3 class="title">
                                          <%item.name%>
                                        </h3>
                                        <div class="desc">
                                            <%if item.nickName %>
                                            主讲人：<%item.nickName%>
                                            <%/if%>
                                            · <%item.playCount%>点播次数
                                        </div>
                                    </div>
                                </a>
                                <span class="middle-right clo9 font12">
                                    收藏于 <%=dateFormat(item.createDateTime)%>
                                    <span  data-id="<%item.relatedId%>" onclick="BASE.COMMON.collectVideo(this)" class="blue ml10 hide">收藏</span>
                                    <span data-id="<%item.relatedId%>" onclick="BASE.COMMON.cancelcollectVideo(this)" class="ml10">取消收藏</span>
                                </span>
                            </li>
                            <%/each %>
                            <% else %>
                            <li class="no-data" style="width: 100%">
                                {% include '__no_data.html' %}
                            </li>
                            <%/if%>
                        </ul>
                    </div>
                    {% include '__page.html' %}
                </script>
                <!--问答收藏-->
                <script id="userCollection_tpl2" type="text/html">
                    <div class="listCon pd15" >
                        <ul class="clearfix collect-answer">
                            <% if data.length>0 %>
                            <% each data as item i %>
                            <li class="relative">
                                <%if imgArrarys(item.covers).length>1 %>
                                <h3 class="title">
                                    <a target="_blank" href="/<%item.relatedId%>/answer_content.html"><%item.title%></a>
                                </h3>
                                <%/if%>
                                <%if imgArrarys(item.covers).length==1 %>
                                <div class="listConLeft">
                                    <a target="_blank" href="/<%item.relatedId%>/answer_content.html">
                                        <img class="content-img" src=" <%=imgPath(item.covers)%>">
                                    </a>
                                </div>
                                <%/if%>
                                <%if imgArrarys(item.covers).length>1 %>
                                <div class="content-img-box">
                                    <a target="_blank"  href="/<%item.relatedId%>/answer_content.html">
                                        <%each imgArrarys(item.covers) as img i%>
                                        <img class="content-img" src="<%=imgPath(img)%>">
                                        <%/each%>
                                    </a>
                                </div>
                                <%/if%>
                                <div <%if imgArrarys(item.covers).length==1%> class="listConRight" <%/if%>>
                                    <%if imgArrarys(item.covers).length<=1 %>
                                    <h3 class="title" style="max-width: 680px;overflow: hidden;text-overflow: ellipsis;">
                                        <a target="_blank"  href="/<%item.relatedId%>/answer_content.html"> <%item.title%></a>
                                    </h3>
                                    <%/if%>
                                </div>
                                <span class="middle-right clo9 font12">
                                    收藏于 <%=dateFormat(item.createDateTime)%>
                                    <span  data-id="<%item.relatedId%>" onclick="BASE.COMMON.collectQes(this)" class="blue ml10 hide">收藏</span>
                                    <span data-id="<%item.relatedId%>" onclick="BASE.COMMON.uncollectQes(this)" class="ml10">取消收藏</span>
                                </span>
                            </li>
                            <%/each %>
                            <% else %>
                            <li class="no-data" style="width: 100%">
                                {% include '__no_data.html' %}
                            </li>
                            <%/if%>
                        </ul>
                    </div>
                    {% include '__page.html' %}
                </script>
                <!--源码收藏-->
                <script id="userCollection_tpl3" type="text/html">
                    <div class="listCon pd15" >
                        <ul class="clearfix collect-answer">
                            <% if data.length>0 %>
                            <% each data as item i %>
                            <li class="relative">
                                <%if imgArrarys(item.covers).length>1 %>
                                <h3 class="title">
                                    <a target="_blank" href="/<%item.relatedId%>/source_content.html"><%item.title%></a>
                                </h3>
                                <%/if%>
                                <%if imgArrarys(item.covers).length==1 %>
                                <div class="listConLeft">
                                    <a target="_blank" href="/<%item.relatedId%>/source_content.html">
                                        <img class="content-img" src=" <%=imgPath(item.covers)%>">
                                    </a>
                                </div>
                                <%/if%>
                                <%if imgArrarys(item.covers).length>1 %>
                                <div class="content-img-box">
                                    <a target="_blank"  href="/<%item.relatedId%>/source_content.html">
                                        <%each imgArrarys(item.covers) as img i%>
                                        <img class="content-img" src="<%=imgPath(img)%>">
                                        <%/each%>
                                    </a>
                                </div>
                                <%/if%>
                                <%if imgArrarys(item.covers).length<=1 %>
                                <div <%if imgArrarys(item.covers).length==1%> class="listConRight" <%/if%>>

                                    <h3 class="title" style="max-width: 680px;overflow: hidden;text-overflow: ellipsis;">
                                        <a target="_blank"  href="/<%item.relatedId%>/source_content.html"> <%item.title%></a>
                                    </h3>

                                </div>
                                <%/if%>
                                <span class="middle-right clo9 font12">
                                    收藏于 <%=dateFormat(item.createDateTime)%>
                                    <span  data-id="<%item.relatedId%>" onclick="BASE.COMMON.collectSource(this)" class="blue ml10 hide">收藏</span>
                                    <span data-id="<%item.relatedId%>" onclick="BASE.COMMON.uncollectSource(this)" class="ml10">取消收藏</span>
                                </span>
                             </li>
                            <%/each %>
                            <% else %>
                            <li class="no-data" style="width: 100%">
                                {% include '__no_data.html' %}
                            </li>
                            <%/if%>
                        </ul>
                    </div>
                    {% include '__page.html' %}
                </script>
                <!--博客收藏-->
                <script id="userCollection_tpl4" type="text/html">
                    <div class="listCon pd15" >
                        <ul class="clearfix collect-answer">
                            <% if data.length>0 %>
                            <% each data as item i %>
                            <li class="relative">
                                <%if imgArrarys(item.covers).length>1 %>
                                <h3 class="title">
                                    <a target="_blank" href="/<%item.relatedId%>/blog_content.html"><%item.title%></a>
                                </h3>
                                <%/if%>
                                <%if imgArrarys(item.covers).length==1 %>
                                <div class="listConLeft">
                                    <a target="_blank" href="/<%item.relatedId%>/blog_content.html">
                                        <img class="content-img" src=" <%=imgPath(item.covers)%>">
                                    </a>
                                </div>
                                <%/if%>
                                <%if imgArrarys(item.covers).length>1 %>
                                <div class="content-img-box">
                                    <a target="_blank"  href="/<%item.relatedId%>/blog_content.html">
                                        <%each imgArrarys(item.covers) as img i%>
                                        <img class="content-img" src="<%=imgPath(img)%>">
                                        <%/each%>
                                    </a>
                                </div>
                                <%/if%>
                                <div <%if imgArrarys(item.covers).length==1%> class="listConRight" <%/if%>>
                                <%if imgArrarys(item.covers).length<=1 %>
                                <h3 class="title" style="max-width: 680px;overflow: hidden;text-overflow: ellipsis;">
                                    <a target="_blank"  href="/<%item.relatedId%>/blog_content.html"> <%item.title%></a>
                                </h3>
                                <%/if%>
                    </div>
                    <span class="middle-right clo9 font12">
                                    收藏于 <%=dateFormat(item.createDateTime)%>
                                    <span  data-id="<%item.relatedId%>" onclick="BASE.COMMON.collectBlog(this)" class="blue ml10 hide">收藏</span>
                                    <span data-id="<%item.relatedId%>" onclick="BASE.COMMON.uncollectBlog(this)" class="ml10">取消收藏</span>
                                </span>
                    </li>
                    <%/each %>
                    <% else %>
                    <li class="no-data" style="width: 100%">
                        {% include '__no_data.html' %}
                    </li>
                    <%/if%>
                    </ul>
                    </div>
                    {% include '__page.html' %}
                </script>
                <!--用户栏目---我的收藏end-->

                <!--用户栏目---我的评价start-->
                <section class="hide" id="userEvaluate"></section>
                <!--用户栏目---我的评价end-->

                <!--用户栏目---悬赏接单start-->
                <section class="hide" id="userReceiptOrder"></section>
                <!--用户栏目---悬赏接单end-->

                <!--用户栏目---我的订单start-->
                <section class="hide" id="userOrder"></section>
                <script id="userOrder_tpl" type="text/html">
                    <ul>
                     <%if data.length>0%>
                        <%each data as arr i%>
                        <li class="user-order-item">
                            <div>
                               <span class="font15 fontb">订单号：<%arr.id%></span>
                                <span class="fright font13 clo6"><%=dateFormat(arr.createDateTime)%></span>
                            </div>
                            <div class="user-order-content">
                                <span class="orange font15">[<%=orderType(arr.type)%>]</span>
                                <span class="font15">
                                    <a target="_blank"
                                    <%if orderLinkByType(arr) %>
                                        href="/<%arr.productId%><%=orderLinkByType(arr)%>"
                                    <%else%>
                                        href="javascript:;"
                                    <%/if%>>
                                         <%arr.productDescript%>
                                    </a>
                                </span>
                                 <span class="red font15">
                                     (
                                     <%if arr.payType%>
                                        <%if arr.realPrice>=0&&arr.payType=='rmb'%>
                                          <%arr.realPrice%>元
                                        <%/if%>
                                        <%if arr.realGold>=0&&arr.payType=='gold'%>
                                            金币<%arr.realGold%>
                                        <%/if%>
                                        <%if arr.payType=='free'%>免费<%/if%>
                                     <%else%>
                                        <%if arr.realPrice>0%>
                                           <%arr.realPrice%>元
                                         <%/if%>
                                        <%if arr.realGold>0 && arr.realPrice>0%> / <%/if%>
                                        <%if arr.realGold>0%>
                                            金币<%arr.realGold%>
                                        <%/if%>
                                        <%if arr.realGold==0 && arr.realPrice==0%> 免费 <%/if%>
                                        <%if arr.payType=='free'%>免费<%/if%>
                                     <%/if%>
                                     <%if arr.num>1%>
                                     ,数量<%arr.num%>
                                       <%/if%>
                                     )
                                 </span>
                                <%if (arr.status==6||arr.status==7)&&arr.hasExpress%>
                                <div class="mt10">
                                    <span class="fontb">快递信息：</span>
                                    <%=toJson(arr.expressInfo).expressName%><%=toJson(arr.expressInfo).expressNum%>（快递费：<%=toJson(arr.expressInfo).price%>元）<br/>
                                    <span class="fontb">收件人：</span><%=toJson(arr.expressInfo).realName%><br/>
                                    <span class="fontb">电话：</span><%=toJson(arr.expressInfo).tel%><br/>
                                    <span class="fontb">地址：</span>
                                    <%=toJson(arr.expressInfo).provinceName%> -
                                    <%=toJson(arr.expressInfo).cityName%> -
                                    <%=toJson(arr.expressInfo).areaName%>
                                    <%=toJson(arr.expressInfo).address%>
                                </div>
                                <%/if%>
                                <div class="clearfix center">
                                    <span class="orange fleft <%if arr.status==1 || arr.status==3%> yellow <%/if%>">订单<%=payStatus(arr.status)%></span>
                                    <%if arr.status==1 || arr.status==3%>
                                    <a class="btn ml10 red-border-btn" href="/userSubmitOrder.html??id=<%arr.id%>">再次支付</a>
                                    <%/if%>
                                </div>
                            </div>
                        </li>
                        <%/each%>
                        <%else%>
                        <li class="pd15">
                            {% include '__no_data.html' %}
                        </li>
                        <%/if%>
                    </ul>
                    {% include '__page.html' %}
                </script>
                <!--用户栏目---我的订单end-->

                <!--用户栏目---我的钱包start-->
                <section class="hide" id="userWallet">
                    <div class="ptb20" id="userWallet_balance"></div>
                    <script id="userWallet_balance_tpl" type="text/html">
                        <div class="account-item bg-orange-change">
                            <div class="font12">账户余额</div>
                            <div class="font60"><%money%></div>
                        </div>
                        <div class="account-item bg-purple-change" >
                            <div class="font12">金币</div>
                            <div class="font60"><%gold%></div>
                        </div>
                        <div class="account-item bg-blue-change">
                            <div class="font12">现金券</div>
                            <div class="font60"><%cashTicket%></div>
                        </div>
                        <div class="account-btn-wrap">
                            <a target="_blank" data-money="<%money%>" href="javascript:;" onclick="BASE.USER_CENTER.toWithdrawPrev(this)"
                               class="common-btn blue-border-btn">提现</a><br/>
                            <a target="_blank" href="/userCharge.html" class="common-btn blue-change-btn mt15">充值</a>
                        </div>
                    </script>

                 <!--   <div class="account-title">
                        绑定账户
                    </div>
                    <ul class="account-content">
                        <li class="account-content-item">
                            <img src="../../../public/images/pay1.png" alt="pay">
                            微信
                        </li>
                        <li class="account-content-item">
                            <img src="../../../public/images/pay4.png" alt="pay">
                            支付宝
                        </li>
                        <li class="account-content-item">
                            <img src="../../../public/images/pay3.png" alt="pay">
                            银行卡
                        </li>
                    </ul>-->
                    <div class="account-title">
                        财务记录
                    </div>
                    <ul class="account-content">
                        <li class="account-content-item checked" data-id="dealList" onclick="BASE.USER_CENTER.getDealList.call(this,1)">
                            <img src="../../../public/images/pay4.png" alt="pay">
                            交易记录
                        </li>
                        <li class="account-content-item" data-id="withdraw"  onclick="BASE.USER_CENTER.getWithdrawList.call(this,1)">
                            <img src="../../../public/images/pay5.png" alt="pay">
                            提现记录
                        </li>
                        <li class="account-content-item" data-id="giftList" onclick="BASE.USER_CENTER.getGiftList.call(this,1)">
                            <img src="../../../public/images/pay6.png" alt="pay">
                            收到的心意
                        </li>
                    </ul>
                    <section>
                        <div class="account-details" id="dealList"></div>
                        <div class="account-details hide" id="withdraw"></div>
                        <div class="account-details hide" id="giftList"></div>
                    </section>

                    <script id="dealList_tpl" type="text/html">
                        <div>
                            <span class="iblock bgf8" style="padding: 10px 20px;">统计</span>
                            <span><%data.sumMap.month||''%></span>
                            <span class="red ml30">收入：<%data.sumMap.incomePrice||0%></span>
                            <span class="red ml30">支出：<%data.sumMap.payPrice||0%></span>
                        </div>
                        <table class="table">
                            <thead>
                            <tr>
                                <th width="70">
                                    交易时间
                                    <span class="pointer relative">
                                        <img class="vmiddle" src="../../../public/images/icon-date.png" alt="icon">
                                        <input type="text" id="txt_calendar" data-format="yyyy-mm" readonly="readonly">
                                    </span>
                               </th>
                                <th width="30">
                                    类型
                                </th>
                                <th width="120">
                                    备注
                                </th>
                                <th width="30">
                                    收入
                                </th>
                                <th width="30">
                                    支出
                                </th>
                            </tr>
                            </thead>
                            <tbody>
                            <%if data.list.length>0%>
                                <%each data.list as arr i %>
                                <tr>
                                    <td width="70" class="clo6"  title="<%=dateFormat(arr.createDateTime)%>"><%=dateFormat(arr.createDateTime)%></td>
                                    <td width="30" class="clo6"><%=orderType(arr.type)%></td>
                                    <td width="120" class="clo6"><%arr.descript%></td>
                                    <td width="30" class="blue">
                                        <%if arr.incomeIs%>
                                        +<%arr.price%>
                                        <%/if%>
                                    </td>
                                    <td width="30" class="orange">
                                        <%if !arr.incomeIs%>
                                        -<%arr.price%>
                                        <%/if%>
                                    </td>
                                </tr>
                                <%/each%>
                            <%else%>
                            <tr>
                                <td colspan="5">
                                    {% include '__no_data.html' %}
                                </td>
                            </tr>
                            <%/if%>
                            </tbody>
                        </table>
                        {% include '__page.html' %}
                    </script>
                    <script id="withdraw_tpl" type="text/html">
                        <table class="table">
                            <thead>
                            <tr>
                                <th width="70">交易时间</th>
                                <th width="50">账户</th>
                                <th width="20">申请提现</th>
                                <th width="20">手续费</th>
                                <th width="20">应到账</th>
                                <th width="60">备注</th>
                                <th width="40">状态</th>
                            </tr>
                            </thead>
                            <tbody>
                            <%if data.list.length>0%>
                            <%each data.list as arr i %>
                            <tr>
                                <td width="70" class="clo6" title="<%=dateFormat(arr.createDateTime)%>"><%=dateFormat(arr.createDateTime)%></td>
                                <td width="50" class="clo6" title="<%arr.account%>">
                                    <%if arr.bankName%>
                                        <%arr.bankName%>
                                    <%/if%>
                                    <%arr.account%>
                                </td>
                                <td width="20">
                                    &yen;<%arr.applyMoney%>
                                </td>
                                <td width="20" class="red">
                                    -<%arr.charge%>
                                </td>
                                <td width="20" class="green">
                                    +<%arr.shouldMoney%>
                                </td>
                                <td width="60" class="clo6" title="<%arr.descript%>"><%arr.descript%></td>
                                <td width="40">
                                    <%if arr.status ===1 %>
                                        <span class="blue">申请提现中</span>
                                    <%/if%>
                                    <%if arr.status ===2 %>
                                        <span class="green">成功</span>
                                    <%/if%>
                                    <%if arr.status ===3 %>
                                         <span class="red">失败</span>
                                    <%/if%>
                                </td>
                            </tr>
                            <%/each%>
                            <%else%>
                            <tr>
                                <td colspan="4">
                                    {% include '__no_data.html' %}
                                </td>
                            </tr>
                            <%/if%>
                            </tbody>
                        </table>
                        {% include '__page.html' %}
                    </script>
                    <script id="giftList_tpl" type="text/html">
                        <table class="table">
                            <thead>
                            <tr>
                                <th width="70">
                                    交易时间
                                </th>
                                <th width="30">
                                    赠送人
                                </th>
                                <th width="120">
                                    备注
                                </th>
                                <th width="30">
                                    收入
                                </th>
                            </tr>
                            </thead>
                            <tbody>
                            <%if data.list.length>0%>
                            <%each data.list as arr i %>
                            <tr>
                                <td width="70" class="clo6"><%=dateFormat(arr.createDateTime)%></td>
                                <td width="30" class="clo6">
                                   <%arr.sendNickName%>
                                </td>
                                <td width="120" class="clo6"><%arr.descript%></td>
                                <td width="30" class="blue">
                                    +<%arr.price%>
                                </td>
                            </tr>
                            <%/each%>
                            <%else%>
                            <tr>
                                <td colspan="4">
                                    {% include '__no_data.html' %}
                                </td>
                            </tr>
                            <%/if%>
                            </tbody>
                        </table>
                        {% include '__page.html' %}
                    </script>
                </section>
                <!--用户栏目---我的钱包end-->

                <!--用户栏目---提到我start-->
                <section class="hide" id="userMentionMe"></section>
                <!--用户栏目---提到我end-->
            </div>
        </div>
    </div>
    <!--头像修改弹裁剪-->
    <div class="popup" id="modifyHeader" style="display: none">
        <div class="popupBody">
            <div class="popupDiv1">
                <b>更换头像</b>
                <i class="pointer" onclick="BASE.USER_CENTER.closeHeader()">
                    <img src="../../public/images/close.jpg">
                </i>
            </div>
            <img id="img" src="" class="hide" style="margin-top: 40px;">
        </div>
        <div class="up-header-btn-wrap">
            <button class="btnStyleBlue" onclick="BASE.USER_CENTER.closeHeader()">取消</button>
            <button class="btnBlueM ml30" onclick="BASE.USER_CENTER.sureUpHeader()">确认</button>
        </div>
        <!--上传图片-->
    </div>
    <!--我的资料start-->
    <div class="popup" id="userInfo" style="display: none"></div>
    <script id="userInfo_tpl" type="text/html">
        <div class="popupBody" style="width: 650px;">
            <div class="popupDiv1">
                <b>我的资料</b>
                <i class="pointer" onclick="$('#userInfo').hide()">
                    <img src="../../public/images/close.jpg">
                </i>
            </div>
            <div class="userInfo-modify-box fleft">
                <dl class="clearfix">
                    <dd>真实姓名/昵称</dd>
                    <dt>
                        <input placeholder="真实姓名" data-id="real_name" class="input" type="text" value="<%realName%>">
                        <input placeholder="昵称" data-id="nick_name" class="input" type="text" value="<%nickName%>">
                    </dt>
                </dl>
                <dl class="clearfix">
                    <dd>QQ/微信</dd>
                    <dt>
                        <input placeholder="QQ" data-id="qq" class="input" type="text" value="<%qq%>">
                        <input placeholder="微信" data-id="weixin" class="input" type="text" value="<%weixin%>">
                    </dt>
                </dl>
                <dl class="clearfix">
                    <dd>性别/职业</dd>
                    <dt>
                        <select data-id="sex" class="select">
                            <option value="0">请选择</option>
                            <option <%if sex==1 %> selected <%/if%>value="1">男</option>
                            <option <%if sex==2 %> selected <%/if%>value="2">女</option>
                        </select>
                        <input placeholder="职业" data-id="job" class="input" type="text" value="<%job%>">
                    </dt>
                </dl>
                <dl class="clearfix">
                    <dd>个性签名</dd>
                    <dt>
                        <input placeholder="个性签名" data-id="sign" class="input" type="text" value="<%sign%>" style="width: 400px;">
                    </dt>
                </dl>
                <dl class="clearfix">
                    <dd>毕业院校/工作单位</dd>
                    <dt>
                        <input placeholder="毕业院校" data-id="school_name" class="input" type="text" value="<%schoolName%>" placeholder="选填">
                        <input placeholder="工作单位" data-id="company" class="input" type="text" value="<%company%>" placeholder="选填">
                    </dt>
                </dl>
                <dl class="clearfix">
                    <dd>地区</dd>
                    <dt class="area">
                        {% include '__address_area_select.html' %}
                    </dt>
                </dl>
                <dl class="clearfix">
                    <dd>兴趣方向</dd>
                    <dt>
                        <select id="interestData" class="select"
                                onchange="BASE.USER_CENTER.selectInterestPrarent($('#interestData option:selected').val())">
                            <option value="">请选择</option>
                        </select>
                        <select id="interestChildData"  class="select" onchange="BASE.USER_CENTER.selectInterest()">
                            <option value="">请选择</option>
                        </select>
                        <div class="selected-interest-box" id="userInterest">
                             <%each learnTypeNames as arr i%>
                                <span class="selected-interest-item">
                                    <button data-id="<%learnTypeIds[i]%>" class="common-btn blue-btn"><%arr%></button>
                                    <a href="javascript:;" onclick="$(this).parent('.selected-interest-item').remove()" class="close"></a>
                                </span>
                            <%/each%>
                        </div>
                    </dt>
                </dl>
                <div class="text-align-center mt30">
                    <button class="common-btn blue-change-btn" onclick="BASE.USER_CENTER.modifyUserData()">确认</button>
                </div>
            </div>
        </div>
    </script>
    <script id="interestData_tpl" type="text/html">
        <option value="">请选择</option>
        <%each data as arr i%>
        <option value="<%arr.id%>" data-parentid="<%arr.parentId%>"><%arr.name%></option>
        <%/each%>
    </script>
    <script id="interestChildData_tpl" type="text/html">
        <option value="">请选择</option>
        <%each data as arr i%>
        <option value="<%arr.id%>"><%arr.name%></option>
        <%/each%>
    </script>
    <script id="userInterest_tpl" type="text/html">
        <%each data.learnTypeNames as arr i%>
        <span class="selected-interest-item">
            <button data-id="<%data.learnTypeIds[i]%>" class="common-btn blue-btn"><%arr%></button>
            <a href="javascript:;" onclick="$(this).parent('.selected-interest-item').remove()" class="close"></a>
        </span>
        <%/each%>
    </script>
    {% include '__address_area_script.html' %}
    <!--我的资料end-->
    <!--赚金币start-->
    <div class="popup" id="getGold" style="display: none" >
        <div class="popupBody" style="width: 660px;">
            <div class="popupDiv1">
                <b>每日任务</b>
                <i class="pointer" onclick="$('#getGold').hide()">
                    <img src="../../public/images/close.jpg">
                </i>
            </div>
            <div class="userInfo-modify-box fleft">
                <dl class="clearfix">
                    <dd style="line-height: 53px;">每日签到</dd>
                    <dt>
                        <span class="sign_in" id="checkIn" onclick="BASE.USER_CENTER.checkIn(this)">立即签到</span>
                        <span class="fright red font12">金币+1</span>
                    </dt>
                </dl>
                <dl  class="clearfix">
                    <dd>每日分享</dd>
                    <dt class="share-item-box social-share"  data-initialized="true">
                        <a href="javascript:;" class="share-item icon-weibo ml10">
                            <img class="vmiddle" src="../../../public/images/s11.png" alt="xinlang">
                        </a>
                        <a href="javascript:;" class="share-item icon-qq ml10">
                            <img class="vmiddle" src="../../../public/images/s12.png" alt="qq">
                        </a>
                        <a href="javascript:;" class="share-item icon-qzone ml10">
                            <img class="vmiddle" src="../../../public/images/s15.png" alt="qzone">
                        </a>
                        <a href="javascript:;"  class="share-item icon-wechat relative ml10">
                            <img class="vmiddle" src="../../../public/images/s13.png" alt="weixin">
                        </a>
                     <!--   <img src="../../../public/images/s1.png" alt="">
                        <img class="ml10" src="../../../public/images/s2.png" alt="">
                        <img class="ml10" src="../../../public/images/s3.png" alt="">
                        <img class="ml10" src="../../../public/images/s4.png" alt="">
                        <img class="ml10" src="../../../public/images/s5.png" alt="">
                        <span class="fright red font12">金币+1</span>-->
                        <span class="fright red font12">金币+1</span>
                    </dt>
                </dl>
                <dl  class="clearfix">
                    <dd>邀请好友</dd>
                    <dt>
                        <div>
                            <span class="copy-box">
                                <input value="" class="font12" id="userYcode" readonly/>
                               <!-- <input value="" type="text" class="hide" id="shareuserYcode">-->
                                <span class="blue ml20 pointer" onclick="BASE.USER_CENTER.copyYcode()">复制邀请码</span>
                             </span>
                            <span class="fright red font12">金币+20</span>
                        </div>
                        <span class="clo9 font12">邀请好友，双方各获得20金币，每天最多5次！</span>

                    </dt>
                </dl>
             <!--   <dl  class="clearfix">
                    <dd>送现金券</dd>
                    <dt class="share-item-box social-share"  data-initialized="true">
                        <a href="javascript:;" class="share-item icon-weibo ml10">
                            <img class="vmiddle" src="../../../public/images/s11.png" alt="xinlang">
                        </a>
                        <a href="javascript:;" class="share-item icon-qq ml10">
                            <img class="vmiddle" src="../../../public/images/s12.png" alt="qq">
                        </a>
                        <a href="javascript:;" class="share-item icon-qzone ml10">
                            <img class="vmiddle" src="../../../public/images/s15.png" alt="qzone">
                        </a>
                        <a href="javascript:;"  class="share-item icon-wechat relative ml10">
                            <img class="vmiddle" src="../../../public/images/s13.png" alt="weixin">
                        </a>
                        &lt;!&ndash;   <img src="../../../public/images/s1.png" alt="">
                           <img class="ml10" src="../../../public/images/s2.png" alt="">
                           <img class="ml10" src="../../../public/images/s3.png" alt="">
                           <img class="ml10" src="../../../public/images/s4.png" alt="">
                           <img class="ml10" src="../../../public/images/s5.png" alt="">
                           <span class="fright red font12">金币+1</span>&ndash;&gt;
                    </dt>
                </dl>-->
              <!--  <div class="center mt80">
                    <button class="common-btn blue-change-btn"  onclick="$('#getGold').hide()">确定</button>
                </div>-->
            </div>
        </div>
    </div>
    <!--赚金币end-->
    <!--绑定手机start-->
    <div class="popup" id="bindMobile" style="display: none"></div>
    <script id="bindMobile_tpl" type="text/html">
        <div class="popupBody" style="width: 600px;">
            <div class="popupDiv1" style="padding-bottom: 20px;">
                <b>
                    <%if mobile%>修改<%else%>绑定<%/if%>手机号
                </b>
                <i class="pointer" onclick="$('#bindMobile').hide()">
                    <img src="../../public/images/close.jpg">
                </i>
            </div>
            <div class="pd20">
                <p class="clo6 mt20">
                    *您的手机号将有助于我们提供更好的服务，未经授权不会主动公开
                </p>
                <div class="mt30">
                    <b class="mr10">当前手机</b>
                    <span  class="clo6"><%mobile%></span>
                </div>
                <div class="mt20">
                    <b class="mr10">新手机号</b>
                    <input class="input" type="text" id="tel" placeholder="请输入手机号" style="width: 190px">
                </div>
                <div class="mt20">
                    <b class="mr10">验证码</b>
                    <input class="input" type="text" id="vcode" placeholder="请输入验证码" style="width: 190px;margin-left: 14px">
                    <button class="common-btn blue-change-btn ml5" onclick="BASE.LOGIN.getCode.call(this,5)">获取验证码</button>
                </div>
                <p class="clo9 mt20">
                    每个手机号只能与一个QQ和微信账号绑定
                </p>
                <div class="text-align-center relative" style="padding-top: 30px">
                    <button class="common-btn blue-change-btn"  style="font-size: 16px;"
                            onclick="BASE.USER_CENTER.bindTel()">确认</button>
                </div>
            </div>
        </div>
    </script>
    <!--绑定手机end-->
</div>
{% endblock %}
{% block script %}
    <!--公用js部分-->
    {{super()}}
<!-- build:js -->
    <script src="../../../public/js/page/plugin/cropper.js"></script>
    <script src="../../../public/js/page/plugin/dateyearmonth.js"></script>
    <script src="../../../public/js/page/common/upload.js"></script>
    <script src="../../../public/js/page/plugin/nativepage.js"></script>
    <script src="../../../public/js/page/user/user_userCenter.js"></script>
<!-- endbuild -->
{% endblock %}